﻿using System.ComponentModel;

namespace DiagramDesigner.BusinessModelObject
{
    public class AtributoEspNoTemp:BaseField
    {
        #region Fields
        private int _srid = -1;
        private int _dimension = 2;

        #endregion

        [Description("SRID")]
        [DefaultValue(-1)]
        [TypeProperty(TypeControl.TextBoxControl)]
        public int Srid
        {
            get
            {
                return _srid;
            }
            set
            {
                _srid = value;
            }
        }

        public new string Name
        {
            get
            {
                return base.Name;
            }
            set
            {
                base.Name = value;
            }
        }

        [Description("Number Of Dimensions")]
        [DefaultValue(2)]
        [TypeProperty(TypeControl.TextBoxControl)]
        public int Dimension
        {
            get { return _dimension; }
            set { _dimension = value; }
        }

        [Description("Geometry")]
        [TypeProperty(TypeControl.ComboBoxContol)]
        public TypeGeometry Geometry
        {
            get;
            set;
        }
    }
}
